package cn.waqwb.bwcar.controller;

import cn.waqwb.bwcar.service.TagService;
import cn.waqwb.bwcar.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JokerQ
 * @date 2019/12/2 - 16:15
 */
@RestController
public class EchartsController {
    @Autowired
    private TagService tagService;

    @RequestMapping("/sys/echarts/line")
    public R findLint(){
        return tagService.findLineData();
    }

    @RequestMapping("/sys/echarts/bar")
    public R findBar(){
        return tagService.findBarData();
    }

    @RequestMapping("/sys/echarts/pie")
    public R findBie(){
        return tagService.findPieData();
    }
}
